package com.sunbeam.service;

import com.sunbeam.domain.User;
import com.sunbeam.exception.UserIsExistException;

/**
 * @Title: LoginService.java
 * @Package com.sunbeam.service.impl
 * @Description: TODO
 * @author lyz lyzpoq_gmail_com
 * @date 2014/02/11 13:38:44
 * @version V1.0
 */
public interface LoginService {

	/**
	 * 
	 * @Title: register
	 * @Description: TODO
	 * @param @param user
	 * @param @throws UserIsExistException
	 * @return void
	 * @throws
	 */
	public abstract void register(User user) throws UserIsExistException;

	/**
	 * 
	 * @Title: login
	 * @Description: TODO
	 * @param @param username
	 * @param @param password
	 * @param @return
	 * @return User
	 * @throws
	 */
	public abstract User login(String username, String password);

}
